<template>
	<view class="user">
		<view class="com-item">
				<view class="com-wrap">
					<view class="cell" v-for="(item, index) in userList" :key="index">
						<navigator v-if="index==0" url="./background">
							<view class="cell-left">
								<image class="cell-icon" :src="item.icon" mode="aspectFill"></image>
								<view class="cell-text">{{ item.title }}</view>
							</view>
						</navigator>
						<navigator v-if="index==1" url="./topic">
							<view class="cell-left">
								<image class="cell-icon" :src="item.icon" mode="aspectFill"></image>
								<view class="cell-text">{{ item.title }}</view>
							</view>
						</navigator>
						<view class="iconfont iconmore1"></view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userList: [
					{
						title: '背景设置',
						icon: '/static/images/user/gonglue.png',
						path: 'address-list'
					},
					{
						title: '主题设置',
						icon: '/static/images/user/fankui.png',
						path: 'collect-list'
					},
				],
			}
		},
	}
</script>

<style lang="scss">
page {
	background: #f2f2f2;
}
.btn-hover {
	background: #f2f2f2 !important;
}
.user {
	.com-item {
		padding-left: 20rpx;
		padding-right: 20rpx;
		margin-top: 20rpx;
		.com-wrap {
			border-radius: 25rpx;
			overflow: hidden;
		}
	}
	.cell {
		height: 80rpx;
		padding-left: 20rpx;
		padding-right: 20rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		background: #fff;
		border-bottom: 1px solid #f8f8f8;
		&:active {
			background: #f2f2f2;
		}
		&:last-child {
			border-bottom: none !important;
		}
		.cell-left {
			display: flex;
			align-items: center;
			.cell-icon {
				width: 50rpx;
				height: 50rpx;
			}
			.cell-text {
				color: #666;
				font-size: 28rpx;
				margin-left: 20rpx;
			}
		}
		.iconfont {
			font-size: 40rpx;
			color: #999;
		}
	}
}
</style>

